﻿<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>总部HSE日常管理</title>
    <!-- 公共 js CSS 文件 -->
    <script src="../static/js/common.js"></script>
    <script src="../static/js/Mock/Education.js"></script>

</head>

<body>

    <div id="app">
        <el-tree :data="mydata" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
    </div>
    <script>
        var Main = new Vue({
            el: '#app',
            data: {
                sqldata: testTree,
                mydata: [],
                defaultProps: {
                    children: 'children',

                    label: 'label'
                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                handleNodeClick: function(data) {
                    console.log(data);
                }

                
            },
            mounted: function () {
                this.mydata = fn(this.sqldata, "0");
               
            }
        });

    </script>


</body>

</html>